import koa from "koa"
import { appPost } from "./config/sttng.js"
import { useControllers } from "./controllers/index.js"
import {sync} from "./db/index.js"

await sync()

let app = new koa ()

useControllers(app)

app.listen(appPost)
console.log(`地址如下:http://localhost:${appPost}`);
